package com.liit.module.frame.utils;

import org.apache.commons.configuration.PropertiesConfiguration;

/**
 * 
 * @author dingweibo
 * @Title: ConfigUtil.java
 * @Description: 取配置文件工具类
 * @date 2015年11月28日
 */
public class ConfigUtil {

	private static PropertiesConfiguration config = null;

	static {
		try {
			config = new PropertiesConfiguration("resources.properties");
		} catch (Exception e) {
		}
	}

	public static String get(String key) {
		return config.getString(key);
	}

	public static int getInt(String key) {
		return config.getInt(key);
	}

	public static long getLong(String key) {
		return config.getLong(key);
	}

}
